<div class="widget">
    <div class="widgetTitle">
        <h3><?= $title; ?> - <?= $step; ?></h3>
    </div>

    <div class="widgetContent bottom-border">
        <div class="row nomargin">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <p class="block text-muted clearfix">
                    Please provide correct information of your Business and Services, we have full right to delete your
                    post anytime without prior intimation.
                </p>

                <?php if (Session::get('message')) { ?>
                    <p class="block clearfix text-red">
                        <i class="fa fa-exclamation-circle fa-2x pull-left "></i> <?= Session::get('message'); ?>
                    </p>
                <?php } ?>

                <style>

                    .parent {
                        width: 100%;
                        float: left;
                        margin-bottom: 12px;

                    }

                    .multiple {
                        max-height: 200px; overflow: auto; width: 100%; border: 1px solid #ddd;
                        list-style-type: none; margin: 0; padding: 10px; overflow-x: hidden;
                        font-weight: 300;
                    }



                </style>

                <form class="form-horizontal" method="post" action="<?= URL::current(); ?>" accept-charset="UTF-8">


                    <div class="form-group">
                        <label class="col-sm-2 control-label">Title <span class="text-red"> * </span></label>

                        <div class="col-sm-8">
                            <input type="text" name="title" id="title" class="field" placeholder="Business Title"
                                   value="<?= Input::old('title'); ?>">
                            <div class="text-red small"><?php echo $errors->first('title') ?></div>
                        </div>

                    </div>

                    <legend>Cetegory Information</legend>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Category <span class="text-red"> * </span></label>

                        <div class="col-sm-8">

                            <div id="show_sub_categories">
                                <select name="category" class="parent field">
                                    <option value="" selected="selected">---Select---</option>
                                    <?php foreach ($cat_parent as $pCat): ?>
                                        <option value="<?= $pCat->id; ?>"><?= $pCat->name; ?></option>
                                    <?php endforeach; ?>
                                </select>
                                <div class="text-red small"><?php echo $errors->first('category') ?></div>
                            </div>

                            <div id="show_keyword">

                            </div>

                        </div>
                    </div>

                    <legend>Address Information</legend>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Street <span class="text-red"> * </span> </label>

                        <div class="col-sm-8">
                            <input type="text" class="field" id="street" name="street" placeholder="Street"  value="<?= Input::old('street'); ?>">

                            <div class="text-red small"><?php echo $errors->first('street') ?></div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">Address(2)</label>

                        <div class="col-sm-8">
                            <textarea class="form-control field" name="address2" id="address2"
                                      placeholder="Address line 2"
                                      rows="2"><?php echo $errors->first('address2') ?></textarea>

                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">Zip Code</label>

                        <div class="col-sm-3">
                            <input type="text" class="field" name="zip" id="zip" placeholder="Zip Code" value="">

                            <div class="text-red small"><?php echo $errors->first('zip') ?></div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">City <span class="text-red"> * </span></label>

                        <div class="col-sm-6">
                            <input type="text" name="selectbox-mylocation" id="selectbox-mylocation"
                                   class="field select2"
                                   data-placeholder="Select Location"/>

                            <div class="text-red small"><?php echo $errors->first('selectbox-mylocation') ?></div>
                        </div>
                    </div>



                    <div class="form-group widget-footer">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-danger">Validate</button>
                        </div>

                    </div>
                </form>

            </div>
        </div>
    </div>
</div>